﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace King.BaseUtility
{
    /// <summary>
    /// 错误码
    /// </summary>
    public class ErrorCode
    {
        #region Err

        #endregion

        #region Const

        #endregion

        #region Field

        #endregion

        #region Construction

        #endregion

        #region Static Function

        #endregion

        #region Punlic Function

        #endregion

        #region Assist Function

        #endregion
    }

    /// <summary>
    /// 错误格式表
    /// </summary>
    public static class ErrorFormats
    {
        #region Const

        #endregion

        #region Field

        /// <summary>
        /// 
        /// </summary>
        private static object m_errorFormatsLoker = new Guid();

        /// <summary>
        /// 
        /// </summary>
        private static Dictionary<int, ErrorFormat> m_errorFormats = null;


        #endregion

        #region Construction

        #endregion

        #region Static Function

        #endregion

        #region Punlic Function

        #endregion

        #region Assist Function

        #endregion
    }

    /// <summary>
    /// 错误格式
    /// </summary>
    public class ErrorFormat
    {
        #region Err

        #endregion

        #region Const

        /// <summary>
        /// 正确
        /// </summary>
        public const int E_OK = 0X01;

        /// <summary>
        /// 读取文件错误
        /// </summary>
        public const int E_READ_FILE_FAILED = 0X02;

        /// <summary>
        /// 打开文件错误
        /// </summary>
        public const int E_OPEN_FILE_FAILED = 0X03;

        /// <summary>
        /// 写文件错误
        /// </summary>
        public const int E_WRITE_FILE_FAILED = 0X03;

        /// <summary>
        /// 参数错误
        /// </summary>
        public const int E_PARAM_ERROR = 0X02;

        /// <summary>
        /// 对象不存在
        /// </summary>
        public const int E_NOT_EXIST_OBJECT = 0X02;

        /// <summary>
        /// 系统未知错误
        /// </summary>
        public const int E_SYSTEM_UNEXCEPTION = 0X03;

        #endregion

        #region Field

        /// <summary>
        /// 编号
        /// </summary>
        public int ID
        {
            get;
            set;
        }

        /// <summary>
        /// 格式
        /// </summary>
        public string Format
        {
            get;
            set;
        }

        #endregion

        #region Construction

        #endregion

        #region Static Function

        #endregion

        #region Punlic Function

        #endregion

        #region Assist Function

        #endregion
    }
}
